import request from '@/utils/requestutil'
import common from '@/utils/common'
export function login(data) { 
  return request({
    url:'login' ,
    method: 'post',

    data
  })
}

export function getInfo(token) {
  var url=common.subsysinfo.online?common.baseHttpurl+"/login/getloginInfo":'/vue-element-admin/user/info';
  return request({
    url: url,
   method: 'get',
   
  })
}

export function logout() {
  return request({
    url: 'loginout',
    method: 'post'
  })
}
